<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>访问时间限制</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            overflow: hidden;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .container {
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            padding: 40px;
            width: 90%;
            max-width: 800px;
            text-align: center;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            z-index: -1;
        }

        .error-icon {
            font-size: 80px;
            color: #ff6b6b;
            margin-bottom: 20px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            background: linear-gradient(45deg, #ff8a00, #ff2070);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .message {
            font-size: 1.5rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .time-info {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .time-box {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 20px;
            min-width: 200px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
        }

        .time-box:hover {
            transform: translateY(-5px);
        }

        .time-box h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #ffcc00;
        }

        .time-display {
            font-size: 2.5rem;
            font-weight: bold;
            font-family: 'Courier New', monospace;
            letter-spacing: 3px;
            color: #4dffb8;
        }

        .countdown {
            margin: 30px 0;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 25px;
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
        }

        .countdown h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #ff9d00;
        }

        #timer {
            font-size: 2.5rem;
            font-weight: bold;
            font-family: monospace;
            letter-spacing: 5px;
            color: #ff6b6b;
        }

        .allowed-time {
            background: linear-gradient(45deg, rgba(0, 200, 83, 0.2), rgba(0, 150, 136, 0.2));
            padding: 20px;
            border-radius: 15px;
            margin: 20px 0;
            border-left: 5px solid #00e676;
        }

        .allowed-time p {
            font-size: 1.3rem;
            color: #a7ffeb;
        }

        .contact {
            margin-top: 30px;
            font-size: 1.1rem;
            color: #bbbbbb;
        }

        .contact a {
            color: #4fc3f7;
            text-decoration: none;
            transition: color 0.3s;
        }

        .contact a:hover {
            color: #29b6f6;
            text-decoration: underline;
        }

        .clock {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 10px 15px;
            font-size: 1.2rem;
            font-family: monospace;
        }

        .footer {
            position: absolute;
            bottom: 20px;
            width: 100%;
            text-align: center;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.6);
        }

        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
                width: 95%;
            }

            h1 {
                font-size: 2.5rem;
            }

            .message {
                font-size: 1.2rem;
            }

            .time-display {
                font-size: 2rem;
            }

            #timer {
                font-size: 2rem;
            }

            .time-info {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }

            .time-box {
                width: 90%;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <div class="clock" id="current-time">00:00:00</div>
    <div class="error-icon">
        <i class="fas fa-ban"></i>
    </div>
    <h1>访问受限</h1>

    <div class="message">
        <p>抱歉，当前时间无法访问此内容。系统访问时间为每天06:00至23:00。</p>
    </div>

    <div class="allowed-time">
        <p><i class="fas fa-clock"></i> 允许访问时间：06:00 - 23:00</p>
    </div>

    <div class="time-info">
        <div class="time-box">
            <h3>当前时间</h3>
            <div class="time-display" id="current-time-display">00:00:00</div>
        </div>

        <div class="time-box">
            <h3>服务恢复时间</h3>
            <div class="time-display" id="next-available">06:00:00</div>
        </div>
    </div>

    <div class="countdown">
        <h3>距离服务恢复还有</h3>
        <div id="timer">00:00:00</div>
    </div>

    <div class="contact">
        <p>如需紧急访问，请联系管理员：admin@example.com 或致电 (123) 456-7890</p>
    </div>

    <div class="footer">
        <p>&copy; 2023 系统维护中心 | 错误代码: 403-TIME</p>
    </div>
</div>

<script>
    // 更新时间显示
    function updateTime() {
        const now = new Date();
        const hours = String(now.getHours()).padStart(2, '0');
        const minutes = String(now.getMinutes()).padStart(2, '0');
        const seconds = String(now.getSeconds()).padStart(2, '0');

        // 更新页面上的时间显示
        document.getElementById('current-time').textContent = `${hours}:${minutes}:${seconds}`;
        document.getElementById('current-time-display').textContent = `${hours}:${minutes}:${seconds}`;

        // 计算距离下一个06:00还有多长时间
        let nextAvailable = new Date();
        if (now.getHours() >= 23 || now.getHours() < 6) {
            // 如果在23点之后或6点之前，下一个可用时间是当天06:00
            nextAvailable.setHours(6, 0, 0, 0);
            if (now.getHours() >= 23) {
                // 如果是23点之后，则设置为第二天的06:00
                nextAvailable.setDate(nextAvailable.getDate() + 1);
            }
        } else {
            // 其他情况设置为第二天的06:00
            nextAvailable.setDate(nextAvailable.getDate() + 1);
            nextAvailable.setHours(6, 0, 0, 0);
        }

        // 更新下一个可用时间显示
        document.getElementById('next-available').textContent =
            `${String(nextAvailable.getHours()).padStart(2, '0')}:00:00`;

        // 计算倒计时
        const diff = nextAvailable - now;
        const diffHours = Math.floor(diff / (1000 * 60 * 60));
        const diffMinutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
        const diffSeconds = Math.floor((diff % (1000 * 60)) / 1000);

        // 更新倒计时显示
        document.getElementById('timer').textContent =
            `${String(diffHours).padStart(2, '0')}:${String(diffMinutes).padStart(2, '0')}:${String(diffSeconds).padStart(2, '0')}`;
    }

    // 初始调用
    updateTime();

    // 每秒更新一次
    setInterval(updateTime, 1000);
</script>
</body>
</html>